(function () {
    var MessageUtil = window.MessageUtil = function () {
        return new MessageUtil.fn.init();
    };
    MessageUtil.fn = {
        init : function () {
            
        },
        setin: function(msg, arr) {
            var str = msg;
            for(var i = 0; i < arr.length; i++) {
                str = str.replace('${'+ i + '}', arr[i]);
            }
            return str;
        }
    }
    MessageUtil.fn.init.prototype = MessageUtil.fn;
}
)();

var MessageResource = {
    ERROR : {
        API_NOT_INSTALLED : "<a href='javascript:G_InstallCOM();'>Click here to install Skype4COM.</a>",
        API_OPERATION_TIMEOUT : "Check Skype is runninng and API access control settings.",
        API_NOT_ATTACHED : "Check Skype is runninng and API access control settings."
    },
    SYSTEM : {
        API_ATTACH_UNKNOWN : "API is unknown status.",
        API_ATTACH_SUCCESS : "Connected to Skype.",
        API_ATTACH_PENDING_AUTHORIZATION: "Waiting for authorization from Skype.",
        API_ATTACH_REFUSED : "Refused connection from Skype.",
        API_ATTACH_NOT_AVAILABLE : "API is not available.",
        API_ATTACH_AVAILABLE : "API is available.",
        ATTACH_TO_SKYPE: "Connecting to Skype.",
        ATTACH_TO_SKYPE_FAILED: "Connecting failed."
    }
};

var MessageUtil = new MessageUtil();
